<?php

namespace app\admin\validate;

use think\Validate;

class Location extends Validate {

        protected $rule = [
            'write_string' => 'alphaNum|unique:location',
        ];
        protected $message = [
            'write_string.unique' => '重定向字符已存在',
            'write_string.alphaNum' => '重定向字符必须是英文字符或数字'
        ];
        protected $scene = [
            'edit' => ['write_string'],
            'add'  => ['write_string']
        ];

}
